home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Language/OS - Multiplatform Resource Library
/
LANGUAGE OS.iso
/
lisp
/
clue.lha
/
clue
/
doc
/
clue.tex
/
node176_mn.html
< prev
next >
Wrap
Text File
|
1989-07-12
|
3KB
|
108 lines
<H3><A ID="SECTION005011100000000000000"><tex2html_anchor_invisible_mark></A> <A ID="ch:composites"><tex2html_anchor_mark></A><BR>
Composites
</H3><#5192#>
A contact which is the parent of another contact is known as a
<#2315#><B>composite</B><#2315#><A ID="2316"><tex2html_anchor_invisible_mark></A>. A composite
may be the parent of another composite, leading to a
tree-structured contact hierarchy. Contact A is said to be an
<#2317#><B>ancestor</B><#2317#><A ID="2318"><tex2html_anchor_invisible_mark></A> of contact B (its
<#2319#><B>descendant</B><#2319#><A ID="2320"><tex2html_anchor_invisible_mark></A>) when
A is B's parent or an ancestor of B's parent.
<P>
A composite represents a set of contacts which can be manipulated
(positioned, presented,
etc.) as a unit. A composite is useful whenever several contacts act in concert to provide a
single component of the application's user interface. Typical examples include
``control panels'' and ``dialog boxes'' --- groups of contacts that are presented
together and are used to make related adjustments to application data. In some
cases, operations on one member of such a structure may change the appearance of
another. The composite is the mechanism which allows the operations of its
members to be coordinated.
<P>
The fundamental aspects of the contact parent-child relationship are the same as
those of the window hierarchy defined by the X Window System. In addition, a
composite furnishes geometry management and focus management services for
its children.
<P>
A composite is an instance of the <#2321#><TT>composite</TT><#2321#> class, a
subclass of the basic <#2322#><TT>contact</TT><#2322#> class.
<P>
<#4692#>
<#4399#><FONT SIZE="+1"><#2323#><B>composite Class</B><#2323#></FONT><#4399#>
<A ID="2324"><tex2html_anchor_invisible_mark></A>
<DIV class="RIGHT">
<tex2html_image_mark>#tex2html_wrap_inline10196#
</DIV><#4692#>
<P>
<DIV class="RIGHT">
<tex2html_image_mark>#tex2html_wrap_inline10198#
</DIV>
<P>
<DIV class="RIGHT">
<tex2html_image_mark>#tex2html_wrap_inline10199#
</DIV>
<P>
<DIV class="RIGHT">
<tex2html_image_mark>#tex2html_wrap_inline10200#
</DIV>
<P>
<#4693#>
<#4404#><FONT SIZE="+1"><#2357#><B>add-child Method, composite</B><#2357#></FONT><#4404#>
<A ID="2358"><tex2html_anchor_invisible_mark></A>
<A ID="2359"><tex2html_anchor_invisible_mark></A>
<DIV class="RIGHT">
<tex2html_image_mark>#tex2html_wrap_inline10201#
</DIV><#4693#>
<P>
<DIV class="RIGHT">
<tex2html_image_mark>#tex2html_wrap_inline10204#
</DIV>
<P>
<DIV class="RIGHT">
<tex2html_image_mark>#tex2html_wrap_inline10205#
</DIV>
<P>
<#4408#><FONT SIZE="+1"><#2383#><B>delete-child Method, composite</B><#2383#></FONT><#4408#>
<A ID="2384"><tex2html_anchor_invisible_mark></A>
<A ID="2385"><tex2html_anchor_invisible_mark></A>
<DIV class="RIGHT">
<tex2html_image_mark>#tex2html_wrap_inline10206#
</DIV>
<P>
<DIV class="RIGHT">
<tex2html_image_mark>#tex2html_wrap_inline10207#
</DIV>
<P>
<#4694#>
<#4411#><FONT SIZE="+1"><#2402#><B>(setf contact-parent) Method, contact</B><#2402#></FONT><#4411#>
<A ID="2403"><tex2html_anchor_invisible_mark></A>
<A ID="2404"><tex2html_anchor_invisible_mark></A>
<DIV class="RIGHT">
<tex2html_image_mark>#tex2html_wrap_inline10208#
</DIV><#4694#>
<P>
<DIV class="RIGHT">
<tex2html_image_mark>#tex2html_wrap_inline10211#
</DIV>
<P>
=0 <#5202#>=0 <#5206#>